import React from 'react';
import { Router as DefaultRouter, Route, Switch } from 'react-router-dom';
import dynamic from 'umi/dynamic';
import renderRoutes from 'umi/_renderRoutes';
import RendererWrapper0 from '/Users/lvtianyu/viewhigh/weixinManagement/src/pages/.umi/LocaleWrapper.jsx'
import _dvaDynamic from 'dva/dynamic'

let Router = require('dva/router').routerRedux.ConnectedRouter;

let routes = [
  {
    "path": "/",
    "routes": [
      {
        "path": "/",
        "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../../layouts/BasicLayout'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
        "Routes": [require('../Authorized').default],
        "authority": [
          "admin",
          "user"
        ],
        "routes": [
          {
            "path": "/user",
            "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../../layouts/UserLayout'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
            "routes": [
              {
                "path": "/user",
                "redirect": "/user/login",
                "exact": true
              },
              {
                "path": "/user/login",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__User__models__register.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/User/models/register.js').then(m => { return { namespace: 'register',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../User/Login'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/user/register",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__User__models__register.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/User/models/register.js').then(m => { return { namespace: 'register',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../User/Register'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/user/register-result",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__User__models__register.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/User/models/register.js').then(m => { return { namespace: 'register',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../User/RegisterResult'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "path": "/",
            "name": "首页",
            "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Index/index'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
            "exact": true
          },
          {
            "name": "商品分类",
            "icon": "check-circle-o",
            "path": "/Category",
            "routes": [
              {
                "path": "/Category/Category",
                "name": "category",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Category__models__list.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Category/models/list.js').then(m => { return { namespace: 'list',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Category/Category'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/Category/CategoryList",
                "name": "分类管理",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Category__models__list.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Category/models/list.js').then(m => { return { namespace: 'list',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Category/CategoryList'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "name": "商品",
            "icon": "check-circle-o",
            "path": "/ProductList",
            "routes": [
              {
                "path": "/ProductList",
                "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../ProductList/List'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/ProductList/ListStep",
                "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../ProductList/ListStep'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "name": "订单",
            "icon": "check-circle-o",
            "path": "/OrderList",
            "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../OrderList/OrderList'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
            "exact": true
          },
          {
            "icon": "warning",
            "path": "/exception",
            "routes": [
              {
                "path": "/exception/403",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Exception__models__error.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Exception/models/error.js').then(m => { return { namespace: 'error',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Exception/403'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/exception/404",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Exception__models__error.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Exception/models/error.js').then(m => { return { namespace: 'error',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Exception/404'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/exception/500",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Exception__models__error.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Exception/models/error.js').then(m => { return { namespace: 'error',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Exception/500'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/exception/trigger",
                "hideInMenu": true,
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Exception__models__error.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Exception/models/error.js').then(m => { return { namespace: 'error',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Exception/TriggerException'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "icon": "check-circle-o",
            "path": "/result",
            "routes": [
              {
                "path": "/result/success",
                "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Result/Success'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/result/fail",
                "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Result/Error'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "path": "/profile",
            "name": "profile",
            "icon": "profile",
            "routes": [
              {
                "path": "/profile/basic",
                "name": "basic",
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Profile__models__profile.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Profile/models/profile.js').then(m => { return { namespace: 'profile',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Profile/BasicProfile'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "path": "/profile/advanced",
                "name": "advanced",
                "authority": [
                  "admin"
                ],
                "component": _dvaDynamic({
  app: window.g_app,
models: () => [
  import(/* webpackChunkName: 'p__Profile__models__profile.js' */'/Users/lvtianyu/viewhigh/weixinManagement/src/pages/Profile/models/profile.js').then(m => { return { namespace: 'profile',...m.default}})
],
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../Profile/AdvancedProfile'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
                "exact": true
              },
              {
                "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
              }
            ]
          },
          {
            "component": _dvaDynamic({
  
  component: () => import(/* webpackChunkName: "layouts__BasicLayout" */'../404'),
  LoadingComponent: require('/Users/lvtianyu/viewhigh/weixinManagement/src/components/PageLoading/index').default,
}),
            "exact": true
          },
          {
            "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
          }
        ]
      },
      {
        "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
      }
    ]
  },
  {
    "component": () => React.createElement(require('/Users/lvtianyu/viewhigh/weixinManagement/node_modules/umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: true })
  }
];
window.g_routes = routes;
window.g_plugins.applyForEach('patchRoutes', { initialValue: routes });

export default function RouterWrapper() {
  return (
<RendererWrapper0>
          <Router history={window.g_history}>
      { renderRoutes(routes, {}) }
    </Router>
        </RendererWrapper0>
  );
}
